// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.cpu;

import com.dustedpixels.jasmin.common.Timeline;
import com.dustedpixels.jasmin.memory.Memory;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class Z80 {
  public static void run(final Memory memory, final Memory io) {
    int pc = 0; 
    int a, b, c, d, 
    Timeline timeline = new TimelineImpl();
      
    while (true) {
      byte opcode = (byte) memory.read(pc++);
      
      switch (opcode) {
        // LD r,r'
        case 0x40: 
        case 0x00: timeline.sleep(4); break;
      }
    }
  }
}
